package com.sc.nft.entity.vo.secondEquityProp;

import com.sc.nft.enums.ConSignStatus;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class SecondEquityPropBuyProductPageVO {

        @ApiModelProperty("二级配置id")
        private Long secondConfId;

        @ApiModelProperty("二级商品id")
        private Long secondProductId;

        @ApiModelProperty("权益道具id")
        private Long equityPropsId;

        @ApiModelProperty("名称")
        private String firstTitle;

        @ApiModelProperty("寄售价格")
        private String salesPrice;

        @ApiModelProperty("状态: ON_SALES:寄售中 LOCK:挂单锁定")
        private ConSignStatus status;


    public void setSalesPrice(BigDecimal salesPrice) {
        this.salesPrice = salesPrice.setScale(2,BigDecimal.ROUND_DOWN).toPlainString();
    }
}
